<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <div th:replace="include/_meta :: div"></div>
    <title></title>
    <title>管理</title>
    <meta http-equiv="X-UA-Compatible" content="IE=Edge"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"/>
</head>
<body>
    <div class="container">
        <div class="row" style="margin-top: 50px;">
            <div>
                <ul class="nav nav-tabs" role="tablist">
                    <li role="presentation" onclick="clusterData();" class="active" id="node_1"><a href="#" role="tab" data-toggle="tab">集群管理</a></li>
                    <li role="presentation" onclick="serverData();" id="node_2"><a href="#" role="tab" data-toggle="tab">节点管理</a></li>
                </ul>
            </div>
        </div>
        <div class="row" style="margin-top: 20px;">
            <div class="panel panel-success">
                <div class="panel-heading" role="tab" id="heading" href="#collapse2" data-toggle="collapse" aria-expanded="true" aria-controls="collapse">
                    <h4 class="panel-title">
                        <a data-toggle="collapse" href="#collapse"
                           aria-expanded="true" aria-controls="collapse">
                            列表
                        </a>
                        <button data-toggle="modal" data-target="#myModal_1" class="btn btn-success" style="margin-left: 85%" id="addBtn">添加</button>
                        <button class="btn btn-success" onclick="window.location=ctx">主页</button>
                    </h4>
                </div>
                <div id="collapse" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="heading">
                    <table class="table table-striped table-bordered" style="text-align: center" id = "table">
                    </table>
                </div>
            </div>
        </div>
    </div>


    <div th:replace="model :: model"></div>

    <script type="text/javascript" th:inline="javascript">
        $(function(){
            $("#node_1").trigger("click");
        });
    </script>

</body>
</html>

